<template>
  <div>
    
    <button open-type="share">
      分享
    </button>
  </div>
</template>

<script>
  export default{
    data(){ 
      return {
        news:[],
        
      } 
    },
    mounted() {
      //console.log(this.$mp.query.news);
      this.news =JSON.parse(this.$mp.query.news) 
      const url=this.news;
      console.log(url);
      wx.request({
          url:url,
          success:(res)=>{
            console.log(res.data);
            //this.data=res.data;
          },
         
        })


    },
    onShareAppMessage(){

    }
  }
</script>

<style scoped>



</style>
